import request from '@/utils/request'

export default {
  // 获取库存记录列表
  getInventoryRecords(params) {
    return request({
      url: '/inventory/records',
      method: 'get',
      params
    })
  },
  
  // 获取库存记录详情
  getInventoryRecord(id) {
    return request({
      url: `/inventory/records/${id}`,
      method: 'get'
    })
  },
  
  // 创建库存记录
  createInventoryRecord(data) {
    return request({
      url: '/inventory/records',
      method: 'post',
      data
    })
  },
  
  // 获取库存汇总
  getStockSummary(params) {
    return request({
      url: '/inventory/stock',
      method: 'get',
      params
    })
  },
  
  // 获取低库存商品
  getLowStock() {
    return request({
      url: '/inventory/stock/low',
      method: 'get'
    })
  }
} 